/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package character_7;

import character_7.jiekou.Swimmer;

/**
 *
 * @author Administrator
 */
public class Seaplane extends AirPlane implements Swimmer{
    //private String name;
    
    public Seaplane(String name){
        super(name);
        //this.name = name;
    }
    
    @Override
    public void fly(){
        //System.out.println("海上飞机"+name+"在飞");
        System.out.print("海上");
        super.fly();
    }
    
    @Override
    public void swim(){
        System.out.println("海上飞机" + name + "航行海面");
    }
}
